function addLove(jid){
   if($(".loved").text()=="收藏"){
      $.get("/dev/job/addlove?jId="+jid,function (result){

         if (result.code=="OK"){
            $(".loved").text("已收藏");
            alert("收藏职位成功")
         }else{
            alert("收藏失败");
         }
      });
   }else {
      $.get("/dev/job/dellove?jId="+jid,function (result){

         if (result.code=="OK"){
            $(".loved").text("收藏");
            alert("取消收藏成功")
         }else{
            alert("取消收藏失败");
         }
      });
   }
}


function appleResume(jid){
   if($('.apple').text().trim()=="已投递"){
      alert("请勿重复提交");
   }else {
      $.get("/dev/resume/applejob?jId="+jid,function (result){
         if (result.code=="OK"){
            $(".apple").text("已投递");
            alert("投递职位成功")

         }else{
            alert("请勿重复提交");
         }
      })
   }

}

function goCompany(id){
   window.location.replace("/dev/company/all/msg?id="+id);
}

function goPersonal(){
   window.location.replace("http://localhost:8088/dev/personal/p")
}

function notLike(jid){
   if ($('.noshow').text().trim()=='屏蔽'){
      $.get('/dev/notlike/add?jId='+jid,function (result){
         if(result.code=="OK"){
            $('.noshow').text("已屏蔽");
         }else {
            alert("插入失败");
         }

      })
   }else {
      $.get('/dev/notlike/del?jId='+jid,function (result){
         if(result.code=="OK"){
            $('.noshow').text("屏蔽");
         }else {
            alert("取消屏蔽失败");
         }

      })
   }

}



